Update accessibility unit tests to consider password fields.
authorMario Sanchez Prada <msanchez@igalia.com>
Fri, 10 Aug 2012 16:05:58 +0000 (18:05 +0200)
committerMario Sanchez Prada <msanchez@igalia.com>
Fri, 10 Aug 2012 16:09:06 +0000 (18:09 +0200)
Updated test/a11y/entries.ui to include a new GtkEntry with
'visibility' set to FALSE, and update expectations.

https://bugzilla.gnome.org/show_bug.cgi?id=681591

tests/a11y/entries.txt
tests/a11y/entries.ui

index 866abb666ba9baf7ef560aa953afa25b1a3ae17c..2ebecfc15bd856bb5a92c9e8b9e9fbc285bad287 100644 (file)
@@ -59,6 +59,46 @@ window1
       "label"
       parent: box1
       index: 1
+      name: password entry:
+      label-for: entry2
+      state: enabled multi-line sensitive visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: password entry:
+      character count: 15
+      caret offset: 0
+      default attributes: bg-color: <omitted>
+                          bg-full-height: 0
+                          direction: <omitted>
+                          editable: false
+                          family-name: <omitted>
+                          fg-color: <omitted>
+                          indent: 0
+                          invisible: false
+                          justification: left
+                          language: <omitted>
+                          left-margin: 0
+                          pixels-above-lines: 0
+                          pixels-below-lines: 0
+                          pixels-inside-wrap: 0
+                          right-margin: 0
+                          rise: 0
+                          scale: 1
+                          size: <omitted>
+                          stretch: <omitted>
+                          strikethrough: false
+                          style: <omitted>
+                          underline: none
+                          variant: <omitted>
+                          weight: <omitted>
+                          wrap-mode: word
+    label3
+      "label"
+      parent: box1
+      index: 2
       name: spinbutton:
       label-for: spinbutton1
       state: enabled multi-line sensitive visible
@@ -98,7 +138,7 @@ window1
     entry1
       "text"
       parent: box1
-      index: 2
+      index: 3
       labelled-by: label1
       state: editable enabled focusable sensitive single-line visible
       toolkit: gtk
@@ -137,11 +177,53 @@ window1
       <AtkAction>
       action 0 name: activate
       action 0 keybinding: <Alt>e
+    entry2
+      "password text"
+      parent: box1
+      index: 4
+      labelled-by: label2
+      state: editable enabled focusable sensitive single-line visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: *************
+      character count: 13
+      caret offset: 0
+      default attributes: bg-color: <omitted>
+                          bg-full-height: 0
+                          direction: <omitted>
+                          editable: false
+                          family-name: <omitted>
+                          fg-color: <omitted>
+                          indent: 0
+                          invisible: false
+                          justification: left
+                          language: <omitted>
+                          left-margin: 0
+                          pixels-above-lines: 0
+                          pixels-below-lines: 0
+                          pixels-inside-wrap: 0
+                          right-margin: 0
+                          rise: 0
+                          scale: 1
+                          size: <omitted>
+                          stretch: <omitted>
+                          strikethrough: false
+                          style: <omitted>
+                          underline: none
+                          variant: <omitted>
+                          weight: <omitted>
+                          wrap-mode: word
+      <AtkAction>
+      action 0 name: activate
+      action 0 keybinding: <Alt>p
     spinbutton1
       "spin button"
       parent: box1
-      index: 3
-      labelled-by: label2
+      index: 5
+      labelled-by: label3
       state: editable enabled focusable sensitive single-line visible
       toolkit: gtk
       <AtkComponent>
index f8f66e862c5e499f1321758e5e8d3e62928ff024..0243dd7a2d70a3819c857e542a1e53f0f99a6fda 100644 (file)
         </child>
         <child>
           <object class="GtkLabel" id="label2">
+            <property name="label">_password entry:</property>
+            <property name="visible">True</property>
+            <property name="use-underline">True</property>
+            <property name="mnemonic-widget">entry2</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label3">
             <property name="label">_spinbutton:</property>
             <property name="visible">True</property>
             <property name="use-underline">True</property>
             <property name="visible">True</property>
           </object>
         </child>
+        <child>
+          <object class="GtkEntry" id="entry2">
+            <property name="text" translatable="yes">password text</property>
+            <property name="visible">True</property>
+            <property name="visibility">False</property>
+            <property name="invisible_char">*</property>
+            <property name="invisible_char_set">True</property>
+          </object>
+        </child>
         <child>
           <object class="GtkSpinButton" id="spinbutton1">
             <property name="adjustment">adjustment1</property>